package com.woniuxy.auth.service.impl;

import com.woniuxy.auth.entity.Rbac_perm;
import com.woniuxy.auth.mapper.Rbac_permMapper;
import com.woniuxy.auth.service.Rbac_permService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author user
 * @since 2021-03-03
 */
@Service
public class Rbac_permServiceImpl extends ServiceImpl<Rbac_permMapper, Rbac_perm> implements Rbac_permService {

    @Autowired
    private Rbac_permMapper permMapper;

    @Override
    public List<Rbac_perm> getPermById(int id) {
        return permMapper.getMenusById(id);
    }
}
